package demo5;

public class Duck extends Animal implements Irun,Iswim{

    @Override
    public void running() {
        System.out.println(this.name+" 正在跑");
    }
    @Override
    public void swimming() {
        System.out.println(this.name+" 真在游泳");
    }

    public Duck(String name, int age) {
        super(name, age);
    }



}
